from django.conf.urls import url

from .views import UserViewSet


user_list = UserViewSet.as_view({
    'post': 'create',
})

user_detail = UserViewSet.as_view({
    'get': 'retrieve',
    'put': 'update',
    'patch': 'partial_update',
})

urlpatterns = [
    url(r'^$', user_list, name='user-list'),
    url(r'^(?P<pk>[0-9]+)$', user_detail, name='user-detail'),
]
